/**
 * 
 */
package com.dsteiner.gwt.cafeteriasophia.client.model;

import java.beans.PropertyChangeListener;

import com.dsteiner.gwt.cafeteriasophia.client.domain.ShiftChange;
import com.dsteiner.widgets.client.PropertyChangeCollection;

public class ShiftChangeInfoModel {
	private PropertyChangeCollection propertyChangeSupport = new PropertyChangeCollection(
			this);
	
	public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener) {
		propertyChangeSupport.registerPropertyChangeListener(
				propertyName, listener);
	}
	
	private ShiftChange shiftChange;

	public ShiftChange getShiftChange() {
		return shiftChange;
	}

	public void setShiftChange(ShiftChange shiftChange) {
		ShiftChange oldShiftChange = this.shiftChange;
		this.shiftChange = shiftChange;
		propertyChangeSupport.firePropertyChange("shiftChange", oldShiftChange, shiftChange);
	}
}